import request from '@/utils/request'

// 查询被考核人员列表
export function listExamineUser(query) {
  return request({
    url: '/examine/user/list',
    method: 'get',
    params: query
  })
}

// 查询活动统计被考核人员列表
export function listActiveExamineUser(query) {
  return request({
    url: '/examine/user/activeDetailList',
    method: 'get',
    params: query
  })
}

// 查询绩效考核统计被考核人员列表
export function listAuthExamineUser(query) {
  return request({
    url: '/examine/user/listAuthExamineUser',
    method: 'get',
    params: query
  })
}

// 查询我的任务列表
export function listMyExamine(query) {
  return request({
    url: '/examine/user/listMyExamine',
    method: 'get',
    params: query
  })
}

// 首页查询我的积分列表
export function myScoreList(query) {
  return request({
    url: '/examine/user/listMyScore',
    method: 'get',
    params: query
  })
}

// 查询考核详细
export function getExamineUserInfo(id) {
  return request({
    url: '/examine/user/'+id,
    method: 'get'
  })
}

// 修改用户接收、提交状态
export function updateExamineUser(data) {
  return request({
    url: '/examine/user',
    method: 'put',
    data: data
  })
}

// 更新活动被考核人荣誉值
export function updateActiveExamineUser(data) {
  return request({
    url: '/examine/user/editActive',
    method: 'put',
    data: data
  })
}

// 查询活动考核统计
export function getActiveStatistic(query) {
  return request({
    url: '/examine/user/activeStatistic',
    method: 'get',
    params: query
  })
}
  // 公共查询考核详情接口 拖拽组件使用
  export function getExamineInfo(id) {
    return request({
      url: '/examine/user/getExamineInfo/'+id,
      method: 'get'
    })
}
  // 公共查询菜单小红点状态
  export function getStatusCheck(id) {
    return request({
      url: '/examine/status/statusCheck',
      method: 'get'
    })
}